﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentScheduler;
using YiYiTong.Rocket.Helper;
using YiYiTong.Rocket.Business;
using YiYiTong.Rocket.Model;
using YiYiTong.Rocket.EFDBFirst;

namespace YiYiTong.Rocket.ProcessConsole
{
    /// <summary>
    /// 供应商结算
    /// </summary>
    public class JiesuanJob : BaseJob
    {
        static int excutecounts;
        public override void DoAction()
        {
            if (excutecounts % 1 == 0)
            {
                LogHelper.Debug($"结算执行：{excutecounts}次");
            }
            excutecounts++;

            ADZ_MasterEntities dbcontext = new ADZ_MasterEntities();
            dbcontext.Database.ExecuteSqlCommand("exec proc_jiesuan_basedate");
        }
    }
}
